acm: Move acm_domain_destroy() hook to complete_domain_destroy().
authorKeir Fraser <keir@xensource.com>
Tue, 24 Apr 2007 20:44:41 +0000 (21:44 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 24 Apr 2007 20:44:41 +0000 (21:44 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/domain.c

index 00df76ede0fe94cf61db7f18997cfa624230f800..5d13042f73b1e2071559e397b310c4a498d9b624 100644 (file)
@@ -321,7 +321,6 @@ void domain_kill(struct domain *d)
         return;
     }
 
-    acm_domain_destroy(d);
     gnttab_release_mappings(d);
     domain_relinquish_resources(d);
     put_domain(d);
@@ -473,6 +472,8 @@ static void complete_domain_destroy(struct rcu_head *head)
 {
     struct domain *d = container_of(head, struct domain, rcu);
 
+    acm_domain_destroy(d);
+
     rangeset_domain_destroy(d);
 
     evtchn_destroy(d);